package bm.com.framework.common.config;

public interface EnumCode {

    /** HTTP RESPONSE Code*/
    int SYSTEM_SERVER_ERROR = 500; //系统服务错误
    int CODE_SUCCESS = 0;  //数据接口成功
    int CODE_ERROR = 10001; //数据接口错误
    int CODE_DB_RECORD_EXISTS = 10002;
    int UNAUTHORIZED = 401; //未经许可（或批准）的，未经授权的
    int FORBIDDEN = 403; //禁止的；禁止进入的；忌讳的，禁止做（谈论）的；禁戒的

    /** Number Code  */
    int NUMBER_MINUS_ONE = -1; //
    int NUMBER_ZERO = 0; //数值0
    int NUMBER_ONE = 1; //数值1
    int NUMBER_TWE = 2; //数值2
    int NUMBER_THREE = 3; //数值3
    int NUMBER_FOUR = 4; //数值4
    int NUMBER_FIVE = 5; //数值4
    int NUMBER_SIX = 6; //数值4
    int NUMBER_SEVEN = 7; //数值4
    int NUMBER_EIGHT = 8; //数值4
    int NUMBER_NINE = 9; //数值4
    int NUMBER_TEN = 10; //数值4
    int NUMBER_ELEVEN = 11; //数值4
    long NUMBER_TWO_HUNDRED = 200; //数值4

    /** time code（单位秒） */
    int TIME_10 = 10;
    int TIME_30 = 30;
    int TIME_60 = 60;
    int TIME_120 = 120;
    int TIME_300 = 300;
    int TIME_1800 = 1800; //30分钟
    int TIME_3600 = 3600; //1小时
    int TIME_86400= 86400; //1天
    int TIME_864000= 864000; //10天
    int TIME_1296000= 1296000; //15天
    int TIME_2592000= 2592000; //30天

    /**
     * 保存文件所在路径的key
     */
    String FILE_MD5_KEY = "FILE_MD5:";

    /**
     * 保存上传文件的状态
     */
    String FILE_UPLOAD_STATUS = "FILE_UPLOAD_STATUS";

    /**
     * 数字
     */
    String RANDOM_FIXED_KEY = "qaaAGBHa234sdt34";

    /**
     * 数字
     */
    String RANDOM_NUMBER = "0123456789012345678901234567890123456789";
    /**
     * 字母
     */
    String RANDOM_LETTER = "abcdefghijklmnopqistuvwxyzABCDEFGHIJKLMNOPQISTUVWXYZabcdefghijklmnopqistuvwxyzABCDEFGHIJKLMNOPQISTUVWXYZ";
    /**
     * 特殊符号
     */
    String RANDOM_SYMBOL = "~`!@#$%^&*(){},.:;'?<>";
    /**
     * 数字和字母混合
     */
    String RANDOM_MIXTURE = "0123456789abcdefghijklmnopqistuvwxyz0123456789ABCDEFGHIJKLMNOPQISTUVWXYZ0123456789abcdefghijklmnopqistuvwxyz0123456789ABCDEFGHIJKLMNOPQISTUVWXYZ0123456789";


    /**
     * 日期格式
     */
    public static final String DATE_FORMAT = "yyyy-MM-dd";

    /**
     * 日期格式（没有连接符）
     */
    public static final String DATE_FORMAT_DAY = "yyyyMMdd";

    /**
     * 日期时间
     */
    public static final String DATE_FORMAT_TIME = "yyyy-MM-dd HH:mm:ss";

    /**
     * 日期时间 （T）格式
     */
    public static final String DATE_FORMAT_T_TIME = "yyyy-MM-ddTHH:mm:ss";

}
